package com.foreknow.homework1;

import java.util.Scanner;

public class Computer {
    Scanner input = new Scanner(System.in);
    private String name;
    private int chuquan;
    private String jieguo;
    private int score;

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public Scanner getInput() {
        return input;
    }

    public void setInput(Scanner input) {
        this.input = input;
    }

    public String getJieguo() {
        return jieguo;
    }

    public void setJieguo(String jieguo) {
        this.jieguo = jieguo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getChuquan() {
        return chuquan;
    }

    public void setChuquan(int chuquan) {
        this.chuquan = chuquan;
    }

    public int chuquan(){
        int a = (int) (Math.random() * 10 %3+1);
        switch (a){
            case 1:
                this.chuquan = 1;
                jieguo ="剪刀";
                break;
            case 2:
                this.chuquan = 2;
                jieguo ="石头";
                break;
            case 3:
                this.chuquan = 3;
                jieguo ="布";
        }return chuquan;
    }
}
